import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/constants/font_family.dart';
import 'package:flutter_eve_plugin/constants/font_weight.dart';
import 'package:flutter_eve_plugin/model/ye_xiu/checkpoint/user_card.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class CheckpointPrepareGameTopNameWidget extends StatelessWidget {
  final CardList info;
  const CheckpointPrepareGameTopNameWidget({Key key, this.info})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: setRatio(375),
      margin: EdgeInsets.only(top: setRatio(6)),
      child: Text(
        info?.card?.name ?? '',
        textAlign: TextAlign.center,
        style: TextStyle(
            color: Color(0xFFFFFFFF),
            fontFamily: FontFamily.PINGFANG,
            fontWeight: FontWeightCustom.PF_Medium,
            fontSize: setTextSp(13)),
      ),
    );
  }
}
